package xeroxware.framework.datasource;

/**
 * <pre>
 * ContextHolder
 * </pre>
 * 
 * @since 2013. 3. 7.
 * @author XEROXER
 */
public class ContextHolder {

	private static final ThreadLocal<DataSourceType> contextHolder = new ThreadLocal<DataSourceType>();

	public static void setDataSourceType(DataSourceType dataSourceType) {
		contextHolder.set(dataSourceType);
	}

	public static DataSourceType getDataSourceType() {
		return contextHolder.get();
	}

	public static void clearDataSourceType() {
		contextHolder.remove();
	}
}
